using UnityEngine;
using System.Collections;

public class Gift : MonoBehaviour {
	
	public Texture[] gifts;
	
	void Start() 
	{
		int texture = Random.Range(0,gifts.Length);
		renderer.material.mainTexture = gifts[texture];
	}

    void Update()
    {
        if(transform.position.y < -6.3f)
        {
            PlayerInformations.AddPoints(-50);
            Destroy(gameObject);
        }
    }
}
